package com.lujieni.dbsharding.simple.dao;

import com.lujieni.dbsharding.simple.po.UserPO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

@Repository
public interface UserDao extends Mapper<UserPO> {

    int insertUser(@Param("userId")Long userId,@Param("fullname")String fullname, @Param("districtId") Long districtId);

    List<Map> queryAll(@Param("userId") Long userId);
}
